//------------------------------------------------------------------------------
// <copyright file="HeroTavern.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;

namespace DotBeer.Business.Entities
{
    public class HeroTavern : AbstractHero, ICloneable
    {
        TavernHero _tavern;
        int _position;

        public TavernHero TavernHero
        {
            get { return _tavern; }
            set
            {
                _tavern = value;
                OnPropertyChanged("TavernHero");
            }
        }

        public int Position
        {
            get { return _position; }
            set
            {
                _position = value;
                OnPropertyChanged("Position");
            }
        }

        public HeroTavern()
        {
        }

        #region ICloneable Members

        object ICloneable.Clone()
        {
            return this.Clone();
        }

        public HeroTavern Clone()
        {
            return new HeroTavern()
                        {
                            Name = name,
                            Position = _position,
                            Side = side,
                            TavernHero = _tavern
                        };
        }

        #endregion
    }
}
